<?php
/**
	Sponsor Manager (main.js.php file)
    Copyright (C) <Sat Feb 09 19:32:52 CET 2008>  Marcos Ramírez <marcosramirez@gmail.com>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.

    
    Purpose:
 	Last Modified:
 **/

include '../../../config.php';
include '../../../libs/session.php';

// Not tested, just blind coding ;)
?>

//next line does't work, can't call jquery.js from this file if is the only one in head html.... shit!
//include ('<?php echo $Cfg['Sys']['webDir'].'/templates/'.$Cfg['Sys']['defaultTemplate'].'/js/'; ?>jquery.js');

$(document).ready(function() {
	$('#loading').fadeOut('slow');
});


function include(script_filename) {
	var html_doc = document.getElementsByTagName('head').item(0);
    var js = document.createElement('script');
    //js.setAttribute('language', 'javascript');
    js.setAttribute('type', 'text/javascript');
    js.setAttribute('src', script_filename);
    html_doc.appendChild(js);
    return false;
}